<?php
/**
 * Created by PhpStorm.
 * User: l
 * Date: 2018/11/20
 * Time: 14:01
 */

namespace app\models;

use yii\db\ActiveRecord;

class User_userparty extends ActiveRecord{
	public function findCount($partyId) {
		$post = User_userparty::find()->where(['party_id' => $partyId]);
		$result = $post->asArray()->all();
		
		// $sql = $post->createCommand()->getRawSql();
  //       return $sql;die;

		return $result;
	}
}